"use strict";(self.webpackChunkpromptmanager=self.webpackChunkpromptmanager||[]).push([[5557],{67575:function(e,t,n){n.d(t,{Z:function(){return s}});var o=n(1413),i=n(72791),r={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"},a=n(54291),u=function(e,t){return i.createElement(a.Z,(0,o.Z)((0,o.Z)({},e),{},{ref:t,icon:r}))};u.displayName="CheckOutlined";var s=i.forwardRef(u)},11730:function(e,t,n){n.d(t,{Z:function(){return s}});var o=n(1413),i=n(72791),r={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"},a=n(54291),u=function(e,t){return i.createElement(a.Z,(0,o.Z)((0,o.Z)({},e),{},{ref:t,icon:r}))};u.displayName="SearchOutlined";var s=i.forwardRef(u)},72866:function(e,t,n){n.d(t,{F:function(){return u},Z:function(){return a}});var o=n(4942),i=n(81694),r=n.n(i);function a(e,t,n){var i;return r()((i={},(0,o.Z)(i,"".concat(e,"-status-success"),"success"===t),(0,o.Z)(i,"".concat(e,"-status-warning"),"warning"===t),(0,o.Z)(i,"".concat(e,"-status-error"),"error"===t),(0,o.Z)(i,"".concat(e,"-status-validating"),"validating"===t),(0,o.Z)(i,"".concat(e,"-has-feedback"),n),i))}var u=function(e,t){return t||e}},25541:function(e,t,n){n.d(t,{Qt:function(){return s},Uw:function(){return u},fJ:function(){return a},ly:function(){return c},oN:function(){return m}});var o=n(4942),i=n(39867),r=n(18303),a=new i.E4("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),u=new i.E4("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),s=new i.E4("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),c=new i.E4("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),l=new i.E4("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),f=new i.E4("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),p=new i.E4("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),d=new i.E4("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),h={"slide-up":{inKeyframes:a,outKeyframes:u},"slide-down":{inKeyframes:s,outKeyframes:c},"slide-left":{inKeyframes:l,outKeyframes:f},"slide-right":{inKeyframes:p,outKeyframes:d}},m=function(e,t){var n,i=e.antCls,a="".concat(i,"-").concat(t),u=h[t],s=u.inKeyframes,c=u.outKeyframes;return[(0,r.R)(a,s,c,e.motionDurationMid),(n={},(0,o.Z)(n,"\n      ".concat(a,"-enter,\n      ").concat(a,"-appear\n    "),{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint}),(0,o.Z)(n,"".concat(a,"-leave"),{animationTimingFunction:e.motionEaseInQuint}),n)]}},7573:function(e,t,n){n.d(t,{Z:function(){return R}});var o=n(87462),i=n(1413),r=n(29439),a=n(45987),u=n(72791),s=n(81694),c=n.n(s),l=n(88829),f=n(71605),p=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],d=void 0;function h(e,t){var n=e.prefixCls,r=e.invalidate,s=e.item,f=e.renderItem,h=e.responsive,m=e.responsiveDisabled,v=e.registerSize,g=e.itemKey,y=e.className,w=e.style,b=e.children,Z=e.display,M=e.order,C=e.component,E=void 0===C?"div":C,x=(0,a.Z)(e,p),T=h&&!Z;function O(e){v(g,e)}u.useEffect((function(){return function(){O(null)}}),[]);var k,P=f&&s!==d?f(s):b;r||(k={opacity:T?0:1,height:T?0:d,overflowY:T?"hidden":d,order:h?M:d,pointerEvents:T?"none":d,position:T?"absolute":d});var _={};T&&(_["aria-hidden"]=!0);var D=u.createElement(E,(0,o.Z)({className:c()(!r&&n,y),style:(0,i.Z)((0,i.Z)({},k),w)},_,x,{ref:t}),P);return h&&(D=u.createElement(l.Z,{onResize:function(e){O(e.offsetWidth)},disabled:m},D)),D}var m=u.forwardRef(h);m.displayName="Item";var v=m,g=n(75314),y=n(98368);var w=["component"],b=["className"],Z=["className"],M=function(e,t){var n=u.useContext(T);if(!n){var i=e.component,r=void 0===i?"div":i,s=(0,a.Z)(e,w);return u.createElement(r,(0,o.Z)({},s,{ref:t}))}var l=n.className,f=(0,a.Z)(n,b),p=e.className,d=(0,a.Z)(e,Z);return u.createElement(T.Provider,{value:null},u.createElement(v,(0,o.Z)({ref:t,className:c()(l,p)},f,d)))},C=u.forwardRef(M);C.displayName="RawItem";var E=C,x=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],T=u.createContext(null),O="responsive",k="invalidate";function P(e){return"+ ".concat(e.length," ...")}function _(e,t){var n=e.prefixCls,s=void 0===n?"rc-overflow":n,p=e.data,d=void 0===p?[]:p,h=e.renderItem,m=e.renderRawItem,w=e.itemKey,b=e.itemWidth,Z=void 0===b?10:b,M=e.ssr,C=e.style,E=e.className,_=e.maxCount,D=e.renderRest,R=e.renderRawRest,S=e.suffix,N=e.component,H=void 0===N?"div":N,A=e.itemComponent,V=e.onVisibleChange,W=(0,a.Z)(e,x),z=function(){var e=(0,y.Z)({}),t=(0,r.Z)(e,2)[1],n=(0,u.useRef)([]),o=0,i=0;return function(e){var r=o;return o+=1,n.current.length<r+1&&(n.current[r]=e),[n.current[r],function(e){n.current[r]="function"===typeof e?e(n.current[r]):e,g.Z.cancel(i),i=(0,g.Z)((function(){t({},!0)}))}]}}(),L="full"===M,j=z(null),I=(0,r.Z)(j,2),F=I[0],Y=I[1],B=F||0,X=z(new Map),K=(0,r.Z)(X,2),U=K[0],q=K[1],G=z(0),Q=(0,r.Z)(G,2),$=Q[0],J=Q[1],ee=z(0),te=(0,r.Z)(ee,2),ne=te[0],oe=te[1],ie=z(0),re=(0,r.Z)(ie,2),ae=re[0],ue=re[1],se=(0,u.useState)(null),ce=(0,r.Z)(se,2),le=ce[0],fe=ce[1],pe=(0,u.useState)(null),de=(0,r.Z)(pe,2),he=de[0],me=de[1],ve=u.useMemo((function(){return null===he&&L?Number.MAX_SAFE_INTEGER:he||0}),[he,F]),ge=(0,u.useState)(!1),ye=(0,r.Z)(ge,2),we=ye[0],be=ye[1],Ze="".concat(s,"-item"),Me=Math.max($,ne),Ce=_===O,Ee=d.length&&Ce,xe=_===k,Te=Ee||"number"===typeof _&&d.length>_,Oe=(0,u.useMemo)((function(){var e=d;return Ee?e=null===F&&L?d:d.slice(0,Math.min(d.length,B/Z)):"number"===typeof _&&(e=d.slice(0,_)),e}),[d,Z,F,_,Ee]),ke=(0,u.useMemo)((function(){return Ee?d.slice(ve+1):d.slice(Oe.length)}),[d,Oe,Ee,ve]),Pe=(0,u.useCallback)((function(e,t){var n;return"function"===typeof w?w(e):null!==(n=w&&(null===e||void 0===e?void 0:e[w]))&&void 0!==n?n:t}),[w]),_e=(0,u.useCallback)(h||function(e){return e},[h]);function De(e,t,n){(he!==e||void 0!==t&&t!==le)&&(me(e),n||(be(e<d.length-1),null===V||void 0===V||V(e)),void 0!==t&&fe(t))}function Re(e,t){q((function(n){var o=new Map(n);return null===t?o.delete(e):o.set(e,t),o}))}function Se(e){return U.get(Pe(Oe[e],e))}(0,f.Z)((function(){if(B&&Me&&Oe){var e=ae,t=Oe.length,n=t-1;if(!t)return void De(0,null);for(var o=0;o<t;o+=1){var i=Se(o);if(L&&(i=i||0),void 0===i){De(o-1,void 0,!0);break}if(e+=i,0===n&&e<=B||o===n-1&&e+Se(n)<=B){De(n,null);break}if(e+Me>B){De(o-1,e-i-ae+ne);break}}S&&Se(0)+ae>B&&fe(null)}}),[B,U,ne,ae,Pe,Oe]);var Ne=we&&!!ke.length,He={};null!==le&&Ee&&(He={position:"absolute",left:le,top:0});var Ae,Ve={prefixCls:Ze,responsive:Ee,component:A,invalidate:xe},We=m?function(e,t){var n=Pe(e,t);return u.createElement(T.Provider,{key:n,value:(0,i.Z)((0,i.Z)({},Ve),{},{order:t,item:e,itemKey:n,registerSize:Re,display:t<=ve})},m(e,t))}:function(e,t){var n=Pe(e,t);return u.createElement(v,(0,o.Z)({},Ve,{order:t,key:n,item:e,renderItem:_e,itemKey:n,registerSize:Re,display:t<=ve}))},ze={order:Ne?ve:Number.MAX_SAFE_INTEGER,className:"".concat(Ze,"-rest"),registerSize:function(e,t){oe(t),J(ne)},display:Ne};if(R)R&&(Ae=u.createElement(T.Provider,{value:(0,i.Z)((0,i.Z)({},Ve),ze)},R(ke)));else{var Le=D||P;Ae=u.createElement(v,(0,o.Z)({},Ve,ze),"function"===typeof Le?Le(ke):Le)}var je=u.createElement(H,(0,o.Z)({className:c()(!xe&&s,E),style:C,ref:t},W),Oe.map(We),Te?Ae:null,S&&u.createElement(v,(0,o.Z)({},Ve,{responsive:Ce,responsiveDisabled:!Ee,order:ve,className:"".concat(Ze,"-suffix"),registerSize:function(e,t){ue(t)},display:!0,style:He}),S));return Ce&&(je=u.createElement(l.Z,{onResize:function(e,t){Y(t.clientWidth)},disabled:!Ee},je)),je}var D=u.forwardRef(_);D.displayName="Overflow",D.Item=E,D.RESPONSIVE=O,D.INVALIDATE=k;var R=D},88829:function(e,t,n){n.d(t,{Z:function(){return b}});var o=n(87462),i=n(72791),r=n(85501),a=(n(60632),n(1413)),u=n(88834),s=n(84304),c=n(90474),l=new Map;var f=new c.Z((function(e){e.forEach((function(e){var t,n=e.target;null===(t=l.get(n))||void 0===t||t.forEach((function(e){return e(n)}))}))}));var p=n(15671),d=n(43144),h=n(60136),m=n(29388),v=function(e){(0,h.Z)(n,e);var t=(0,m.Z)(n);function n(){return(0,p.Z)(this,n),t.apply(this,arguments)}return(0,d.Z)(n,[{key:"render",value:function(){return this.props.children}}]),n}(i.Component),g=i.createContext(null);function y(e){var t=e.children,n=e.disabled,o=i.useRef(null),r=i.useRef(null),c=i.useContext(g),p="function"===typeof t,d=p?t(o):t,h=i.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),m=!p&&i.isValidElement(d)&&(0,u.Yr)(d),y=m?d.ref:null,w=i.useMemo((function(){return(0,u.sQ)(y,o)}),[y,o]),b=i.useRef(e);b.current=e;var Z=i.useCallback((function(e){var t=b.current,n=t.onResize,o=t.data,i=e.getBoundingClientRect(),r=i.width,u=i.height,s=e.offsetWidth,l=e.offsetHeight,f=Math.floor(r),p=Math.floor(u);if(h.current.width!==f||h.current.height!==p||h.current.offsetWidth!==s||h.current.offsetHeight!==l){var d={width:f,height:p,offsetWidth:s,offsetHeight:l};h.current=d;var m=s===Math.round(r)?r:s,v=l===Math.round(u)?u:l,g=(0,a.Z)((0,a.Z)({},d),{},{offsetWidth:m,offsetHeight:v});null===c||void 0===c||c(g,e,o),n&&Promise.resolve().then((function(){n(g,e)}))}}),[]);return i.useEffect((function(){var e,t,i=(0,s.Z)(o.current)||(0,s.Z)(r.current);return i&&!n&&(e=i,t=Z,l.has(e)||(l.set(e,new Set),f.observe(e)),l.get(e).add(t)),function(){return function(e,t){l.has(e)&&(l.get(e).delete(t),l.get(e).size||(f.unobserve(e),l.delete(e)))}(i,Z)}}),[o.current,n]),i.createElement(v,{ref:r},m?i.cloneElement(d,{ref:w}):d)}function w(e){var t=e.children;return("function"===typeof t?[t]:(0,r.Z)(t)).map((function(t,n){var r=(null===t||void 0===t?void 0:t.key)||"".concat("rc-observer-key","-").concat(n);return i.createElement(y,(0,o.Z)({},e,{key:r}),t)}))}w.Collection=function(e){var t=e.children,n=e.onBatchResize,o=i.useRef(0),r=i.useRef([]),a=i.useContext(g),u=i.useCallback((function(e,t,i){o.current+=1;var u=o.current;r.current.push({size:e,element:t,data:i}),Promise.resolve().then((function(){u===o.current&&(null===n||void 0===n||n(r.current),r.current=[])})),null===a||void 0===a||a(e,t,i)}),[n,a]);return i.createElement(g.Provider,{value:u},t)};var b=w},72378:function(e,t,n){n.d(t,{Z:function(){return rt}});var o=n(1413),i=n(87462),r=n(15671),a=n(43144),u=n(97326),s=n(60136),c=n(29388),l=n(4942),f=n(72791),p=n(54164),d=n(75314),h=n(80520),m=n(84304),v=n(88834),g=n(31585),y=n(14937),w=(0,f.forwardRef)((function(e,t){var n=e.didUpdate,o=e.getContainer,i=e.children,r=(0,f.useRef)(),a=(0,f.useRef)();(0,f.useImperativeHandle)(t,(function(){return{}}));var u=(0,f.useRef)(!1);return!u.current&&(0,y.Z)()&&(a.current=o(),r.current=a.current.parentNode,u.current=!0),(0,f.useEffect)((function(){null===n||void 0===n||n(e)})),(0,f.useEffect)((function(){return null===a.current.parentNode&&null!==r.current&&r.current.appendChild(a.current),function(){var e,t;null===(e=a.current)||void 0===e||null===(t=e.parentNode)||void 0===t||t.removeChild(a.current)}}),[]),a.current?p.createPortal(i,a.current):null})),b=n(81694),Z=n.n(b);function M(e,t,n){return n?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}var C=n(29439),E=n(45987),x=n(33786),T=n(15207);function O(e){var t=e.prefixCls,n=e.motion,o=e.animation,i=e.transitionName;return n||(o?{motionName:"".concat(t,"-").concat(o)}:i?{motionName:i}:null)}function k(e){var t=e.prefixCls,n=e.visible,r=e.zIndex,a=e.mask,u=e.maskMotion,s=e.maskAnimation,c=e.maskTransitionName;if(!a)return null;var l={};return(u||c||s)&&(l=(0,o.Z)({motionAppear:!0},O({motion:u,prefixCls:t,transitionName:c,animation:s}))),f.createElement(T.Z,(0,i.Z)({},l,{visible:n,removeOnLeave:!0}),(function(e){var n=e.className;return f.createElement("div",{style:{zIndex:r},className:Z()("".concat(t,"-mask"),n)})}))}var P,_=n(71002);function D(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function R(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?D(Object(n),!0).forEach((function(t){N(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):D(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function S(e){return S="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},S(e)}function N(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var H={Webkit:"-webkit-",Moz:"-moz-",ms:"-ms-",O:"-o-"};function A(){if(void 0!==P)return P;P="";var e=document.createElement("p").style;for(var t in H)t+"Transform"in e&&(P=t);return P}function V(){return A()?"".concat(A(),"TransitionProperty"):"transitionProperty"}function W(){return A()?"".concat(A(),"Transform"):"transform"}function z(e,t){var n=V();n&&(e.style[n]=t,"transitionProperty"!==n&&(e.style.transitionProperty=t))}function L(e,t){var n=W();n&&(e.style[n]=t,"transform"!==n&&(e.style.transform=t))}var j,I=/matrix\((.*)\)/,F=/matrix3d\((.*)\)/;function Y(e){var t=e.style.display;e.style.display="none",e.offsetHeight,e.style.display=t}function B(e,t,n){var o=n;if("object"!==S(t))return"undefined"!==typeof o?("number"===typeof o&&(o="".concat(o,"px")),void(e.style[t]=o)):j(e,t);for(var i in t)t.hasOwnProperty(i)&&B(e,i,t[i])}function X(e,t){var n=e["page".concat(t?"Y":"X","Offset")],o="scroll".concat(t?"Top":"Left");if("number"!==typeof n){var i=e.document;"number"!==typeof(n=i.documentElement[o])&&(n=i.body[o])}return n}function K(e){return X(e)}function U(e){return X(e,!0)}function q(e){var t=function(e){var t,n,o,i=e.ownerDocument,r=i.body,a=i&&i.documentElement;return t=e.getBoundingClientRect(),n=Math.floor(t.left),o=Math.floor(t.top),{left:n-=a.clientLeft||r.clientLeft||0,top:o-=a.clientTop||r.clientTop||0}}(e),n=e.ownerDocument,o=n.defaultView||n.parentWindow;return t.left+=K(o),t.top+=U(o),t}function G(e){return null!==e&&void 0!==e&&e==e.window}function Q(e){return G(e)?e.document:9===e.nodeType?e:e.ownerDocument}var $=new RegExp("^(".concat(/[\-+]?(?:\d*\.|)\d+(?:[eE][\-+]?\d+|)/.source,")(?!px)[a-z%]+$"),"i"),J=/^(top|right|bottom|left)$/,ee="currentStyle",te="runtimeStyle",ne="left";function oe(e,t){return"left"===e?t.useCssRight?"right":e:t.useCssBottom?"bottom":e}function ie(e){return"left"===e?"right":"right"===e?"left":"top"===e?"bottom":"bottom"===e?"top":void 0}function re(e,t,n){"static"===B(e,"position")&&(e.style.position="relative");var o=-999,i=-999,r=oe("left",n),a=oe("top",n),u=ie(r),s=ie(a);"left"!==r&&(o=999),"top"!==a&&(i=999);var c,l="",f=q(e);("left"in t||"top"in t)&&(l=(c=e).style.transitionProperty||c.style[V()]||"",z(e,"none")),"left"in t&&(e.style[u]="",e.style[r]="".concat(o,"px")),"top"in t&&(e.style[s]="",e.style[a]="".concat(i,"px")),Y(e);var p=q(e),d={};for(var h in t)if(t.hasOwnProperty(h)){var m=oe(h,n),v="left"===h?o:i,g=f[h]-p[h];d[m]=m===h?v+g:v-g}B(e,d),Y(e),("left"in t||"top"in t)&&z(e,l);var y={};for(var w in t)if(t.hasOwnProperty(w)){var b=oe(w,n),Z=t[w]-f[w];y[b]=w===b?d[b]+Z:d[b]-Z}B(e,y)}function ae(e,t){var n=q(e),o=function(e){var t=window.getComputedStyle(e,null),n=t.getPropertyValue("transform")||t.getPropertyValue(W());if(n&&"none"!==n){var o=n.replace(/[^0-9\-.,]/g,"").split(",");return{x:parseFloat(o[12]||o[4],0),y:parseFloat(o[13]||o[5],0)}}return{x:0,y:0}}(e),i={x:o.x,y:o.y};"left"in t&&(i.x=o.x+t.left-n.left),"top"in t&&(i.y=o.y+t.top-n.top),function(e,t){var n=window.getComputedStyle(e,null),o=n.getPropertyValue("transform")||n.getPropertyValue(W());if(o&&"none"!==o){var i,r=o.match(I);r?((i=(r=r[1]).split(",").map((function(e){return parseFloat(e,10)})))[4]=t.x,i[5]=t.y,L(e,"matrix(".concat(i.join(","),")"))):((i=o.match(F)[1].split(",").map((function(e){return parseFloat(e,10)})))[12]=t.x,i[13]=t.y,L(e,"matrix3d(".concat(i.join(","),")")))}else L(e,"translateX(".concat(t.x,"px) translateY(").concat(t.y,"px) translateZ(0)"))}(e,i)}function ue(e,t){for(var n=0;n<e.length;n++)t(e[n])}function se(e){return"border-box"===j(e,"boxSizing")}"undefined"!==typeof window&&(j=window.getComputedStyle?function(e,t,n){var o=n,i="",r=Q(e);return(o=o||r.defaultView.getComputedStyle(e,null))&&(i=o.getPropertyValue(t)||o[t]),i}:function(e,t){var n=e[ee]&&e[ee][t];if($.test(n)&&!J.test(t)){var o=e.style,i=o[ne],r=e[te][ne];e[te][ne]=e[ee][ne],o[ne]="fontSize"===t?"1em":n||0,n=o.pixelLeft+"px",o[ne]=i,e[te][ne]=r}return""===n?"auto":n});var ce=["margin","border","padding"];function le(e,t,n){var o,i={},r=e.style;for(o in t)t.hasOwnProperty(o)&&(i[o]=r[o],r[o]=t[o]);for(o in n.call(e),t)t.hasOwnProperty(o)&&(r[o]=i[o])}function fe(e,t,n){var o,i,r,a=0;for(i=0;i<t.length;i++)if(o=t[i])for(r=0;r<n.length;r++){var u=void 0;u="border"===o?"".concat(o).concat(n[r],"Width"):o+n[r],a+=parseFloat(j(e,u))||0}return a}var pe={getParent:function(e){var t=e;do{t=11===t.nodeType&&t.host?t.host:t.parentNode}while(t&&1!==t.nodeType&&9!==t.nodeType);return t}};function de(e,t,n){var o=n;if(G(e))return"width"===t?pe.viewportWidth(e):pe.viewportHeight(e);if(9===e.nodeType)return"width"===t?pe.docWidth(e):pe.docHeight(e);var i="width"===t?["Left","Right"]:["Top","Bottom"],r="width"===t?Math.floor(e.getBoundingClientRect().width):Math.floor(e.getBoundingClientRect().height),a=se(e),u=0;(null===r||void 0===r||r<=0)&&(r=void 0,(null===(u=j(e,t))||void 0===u||Number(u)<0)&&(u=e.style[t]||0),u=Math.floor(parseFloat(u))||0),void 0===o&&(o=a?1:-1);var s=void 0!==r||a,c=r||u;return-1===o?s?c-fe(e,["border","padding"],i):u:s?1===o?c:c+(2===o?-fe(e,["border"],i):fe(e,["margin"],i)):u+fe(e,ce.slice(o),i)}ue(["Width","Height"],(function(e){pe["doc".concat(e)]=function(t){var n=t.document;return Math.max(n.documentElement["scroll".concat(e)],n.body["scroll".concat(e)],pe["viewport".concat(e)](n))},pe["viewport".concat(e)]=function(t){var n="client".concat(e),o=t.document,i=o.body,r=o.documentElement[n];return"CSS1Compat"===o.compatMode&&r||i&&i[n]||r}}));var he={position:"absolute",visibility:"hidden",display:"block"};function me(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var o,i=t[0];return 0!==i.offsetWidth?o=de.apply(void 0,t):le(i,he,(function(){o=de.apply(void 0,t)})),o}function ve(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}ue(["width","height"],(function(e){var t=e.charAt(0).toUpperCase()+e.slice(1);pe["outer".concat(t)]=function(t,n){return t&&me(t,e,n?0:1)};var n="width"===e?["Left","Right"]:["Top","Bottom"];pe[e]=function(t,o){var i=o;return void 0!==i?t?(se(t)&&(i+=fe(t,["padding","border"],n)),B(t,e,i)):void 0:t&&me(t,e,-1)}}));var ge={getWindow:function(e){if(e&&e.document&&e.setTimeout)return e;var t=e.ownerDocument||e;return t.defaultView||t.parentWindow},getDocument:Q,offset:function(e,t,n){if("undefined"===typeof t)return q(e);!function(e,t,n){if(n.ignoreShake){var o=q(e),i=o.left.toFixed(0),r=o.top.toFixed(0),a=t.left.toFixed(0),u=t.top.toFixed(0);if(i===a&&r===u)return}n.useCssRight||n.useCssBottom?re(e,t,n):n.useCssTransform&&W()in document.body.style?ae(e,t):re(e,t,n)}(e,t,n||{})},isWindow:G,each:ue,css:B,clone:function(e){var t,n={};for(t in e)e.hasOwnProperty(t)&&(n[t]=e[t]);if(e.overflow)for(t in e)e.hasOwnProperty(t)&&(n.overflow[t]=e.overflow[t]);return n},mix:ve,getWindowScrollLeft:function(e){return K(e)},getWindowScrollTop:function(e){return U(e)},merge:function(){for(var e={},t=0;t<arguments.length;t++)ge.mix(e,t<0||arguments.length<=t?void 0:arguments[t]);return e},viewportWidth:0,viewportHeight:0};ve(ge,pe);var ye=ge.getParent;function we(e){if(ge.isWindow(e)||9===e.nodeType)return null;var t,n=ge.getDocument(e).body,o=ge.css(e,"position");if(!("fixed"===o||"absolute"===o))return"html"===e.nodeName.toLowerCase()?null:ye(e);for(t=ye(e);t&&t!==n&&9!==t.nodeType;t=ye(t))if("static"!==(o=ge.css(t,"position")))return t;return null}var be=ge.getParent;function Ze(e,t){for(var n={left:0,right:1/0,top:0,bottom:1/0},o=we(e),i=ge.getDocument(e),r=i.defaultView||i.parentWindow,a=i.body,u=i.documentElement;o;){if(-1!==navigator.userAgent.indexOf("MSIE")&&0===o.clientWidth||o===a||o===u||"visible"===ge.css(o,"overflow")){if(o===a||o===u)break}else{var s=ge.offset(o);s.left+=o.clientLeft,s.top+=o.clientTop,n.top=Math.max(n.top,s.top),n.right=Math.min(n.right,s.left+o.clientWidth),n.bottom=Math.min(n.bottom,s.top+o.clientHeight),n.left=Math.max(n.left,s.left)}o=we(o)}var c=null;ge.isWindow(e)||9===e.nodeType||(c=e.style.position,"absolute"===ge.css(e,"position")&&(e.style.position="fixed"));var l=ge.getWindowScrollLeft(r),f=ge.getWindowScrollTop(r),p=ge.viewportWidth(r),d=ge.viewportHeight(r),h=u.scrollWidth,m=u.scrollHeight,v=window.getComputedStyle(a);if("hidden"===v.overflowX&&(h=r.innerWidth),"hidden"===v.overflowY&&(m=r.innerHeight),e.style&&(e.style.position=c),t||function(e){if(ge.isWindow(e)||9===e.nodeType)return!1;var t=ge.getDocument(e),n=t.body,o=null;for(o=be(e);o&&o!==n&&o!==t;o=be(o))if("fixed"===ge.css(o,"position"))return!0;return!1}(e))n.left=Math.max(n.left,l),n.top=Math.max(n.top,f),n.right=Math.min(n.right,l+p),n.bottom=Math.min(n.bottom,f+d);else{var g=Math.max(h,l+p);n.right=Math.min(n.right,g);var y=Math.max(m,f+d);n.bottom=Math.min(n.bottom,y)}return n.top>=0&&n.left>=0&&n.bottom>n.top&&n.right>n.left?n:null}function Me(e){var t,n,o;if(ge.isWindow(e)||9===e.nodeType){var i=ge.getWindow(e);t={left:ge.getWindowScrollLeft(i),top:ge.getWindowScrollTop(i)},n=ge.viewportWidth(i),o=ge.viewportHeight(i)}else t=ge.offset(e),n=ge.outerWidth(e),o=ge.outerHeight(e);return t.width=n,t.height=o,t}function Ce(e,t){var n=t.charAt(0),o=t.charAt(1),i=e.width,r=e.height,a=e.left,u=e.top;return"c"===n?u+=r/2:"b"===n&&(u+=r),"c"===o?a+=i/2:"r"===o&&(a+=i),{left:a,top:u}}function Ee(e,t,n,o,i){var r=Ce(t,n[1]),a=Ce(e,n[0]),u=[a.left-r.left,a.top-r.top];return{left:Math.round(e.left-u[0]+o[0]-i[0]),top:Math.round(e.top-u[1]+o[1]-i[1])}}function xe(e,t,n){return e.left<n.left||e.left+t.width>n.right}function Te(e,t,n){return e.top<n.top||e.top+t.height>n.bottom}function Oe(e,t,n){var o=[];return ge.each(e,(function(e){o.push(e.replace(t,(function(e){return n[e]})))})),o}function ke(e,t){return e[t]=-e[t],e}function Pe(e,t){return(/%$/.test(e)?parseInt(e.substring(0,e.length-1),10)/100*t:parseInt(e,10))||0}function _e(e,t){e[0]=Pe(e[0],t.width),e[1]=Pe(e[1],t.height)}function De(e,t,n,o){var i=n.points,r=n.offset||[0,0],a=n.targetOffset||[0,0],u=n.overflow,s=n.source||e;r=[].concat(r),a=[].concat(a);var c={},l=0,f=Ze(s,!(!(u=u||{})||!u.alwaysByViewport)),p=Me(s);_e(r,p),_e(a,t);var d=Ee(p,t,i,r,a),h=ge.merge(p,d);if(f&&(u.adjustX||u.adjustY)&&o){if(u.adjustX&&xe(d,p,f)){var m=Oe(i,/[lr]/gi,{l:"r",r:"l"}),v=ke(r,0),g=ke(a,0);(function(e,t,n){return e.left>n.right||e.left+t.width<n.left})(Ee(p,t,m,v,g),p,f)||(l=1,i=m,r=v,a=g)}if(u.adjustY&&Te(d,p,f)){var y=Oe(i,/[tb]/gi,{t:"b",b:"t"}),w=ke(r,1),b=ke(a,1);(function(e,t,n){return e.top>n.bottom||e.top+t.height<n.top})(Ee(p,t,y,w,b),p,f)||(l=1,i=y,r=w,a=b)}l&&(d=Ee(p,t,i,r,a),ge.mix(h,d));var Z=xe(d,p,f),M=Te(d,p,f);if(Z||M){var C=i;Z&&(C=Oe(i,/[lr]/gi,{l:"r",r:"l"})),M&&(C=Oe(i,/[tb]/gi,{t:"b",b:"t"})),i=C,r=n.offset||[0,0],a=n.targetOffset||[0,0]}c.adjustX=u.adjustX&&Z,c.adjustY=u.adjustY&&M,(c.adjustX||c.adjustY)&&(h=function(e,t,n,o){var i=ge.clone(e),r={width:t.width,height:t.height};return o.adjustX&&i.left<n.left&&(i.left=n.left),o.resizeWidth&&i.left>=n.left&&i.left+r.width>n.right&&(r.width-=i.left+r.width-n.right),o.adjustX&&i.left+r.width>n.right&&(i.left=Math.max(n.right-r.width,n.left)),o.adjustY&&i.top<n.top&&(i.top=n.top),o.resizeHeight&&i.top>=n.top&&i.top+r.height>n.bottom&&(r.height-=i.top+r.height-n.bottom),o.adjustY&&i.top+r.height>n.bottom&&(i.top=Math.max(n.bottom-r.height,n.top)),ge.mix(i,r)}(d,p,f,c))}return h.width!==p.width&&ge.css(s,"width",ge.width(s)+h.width-p.width),h.height!==p.height&&ge.css(s,"height",ge.height(s)+h.height-p.height),ge.offset(s,{left:h.left,top:h.top},{useCssRight:n.useCssRight,useCssBottom:n.useCssBottom,useCssTransform:n.useCssTransform,ignoreShake:n.ignoreShake}),{points:i,offset:r,targetOffset:a,overflow:c}}function Re(e,t,n){var o=n.target||t,i=Me(o),r=!function(e,t){var n=Ze(e,t),o=Me(e);return!n||o.left+o.width<=n.left||o.top+o.height<=n.top||o.left>=n.right||o.top>=n.bottom}(o,n.overflow&&n.overflow.alwaysByViewport);return De(e,i,n,r)}Re.__getOffsetParent=we,Re.__getVisibleRectForElement=Ze;var Se=n(72034),Ne=n(92386),He=n(71605),Ae=n(90474);function Ve(e,t){var n=null,o=null;var i=new Ae.Z((function(e){var i=(0,C.Z)(e,1)[0].target;if(document.documentElement.contains(i)){var r=i.getBoundingClientRect(),a=r.width,u=r.height,s=Math.floor(a),c=Math.floor(u);n===s&&o===c||Promise.resolve().then((function(){t({width:s,height:c})})),n=s,o=c}}));return e&&i.observe(e),function(){i.disconnect()}}function We(e){return"function"!==typeof e?null:e()}function ze(e){return"object"===(0,_.Z)(e)&&e?e:null}var Le=function(e,t){var n=e.children,o=e.disabled,i=e.target,r=e.align,a=e.onAlign,u=e.monitorWindowResize,s=e.monitorBufferTime,c=void 0===s?0:s,l=f.useRef({}),p=f.useRef(),d=f.Children.only(n),m=f.useRef({});m.current.disabled=o,m.current.target=i,m.current.align=r,m.current.onAlign=a;var y=function(e,t){var n=f.useRef(!1),o=f.useRef(null);function i(){window.clearTimeout(o.current)}return[function r(a){if(i(),n.current&&!0!==a)o.current=window.setTimeout((function(){n.current=!1,r()}),t);else{if(!1===e(a))return;n.current=!0,o.current=window.setTimeout((function(){n.current=!1}),t)}},function(){n.current=!1,i()}]}((function(){var e=m.current,t=e.disabled,n=e.target,o=e.align,i=e.onAlign,r=p.current;if(!t&&n&&r){var a,u=We(n),s=ze(n);l.current.element=u,l.current.point=s,l.current.align=o;var c=document.activeElement;return u&&(0,Ne.Z)(u)?a=Re(r,u,o):s&&(a=function(e,t,n){var o,i,r=ge.getDocument(e),a=r.defaultView||r.parentWindow,u=ge.getWindowScrollLeft(a),s=ge.getWindowScrollTop(a),c=ge.viewportWidth(a),l=ge.viewportHeight(a),f={left:o="pageX"in t?t.pageX:u+t.clientX,top:i="pageY"in t?t.pageY:s+t.clientY,width:0,height:0},p=o>=0&&o<=u+c&&i>=0&&i<=s+l,d=[n.points[0],"cc"];return De(e,f,R(R({},n),{},{points:d}),p)}(r,s,o)),function(e,t){e!==document.activeElement&&(0,h.Z)(t,e)&&"function"===typeof e.focus&&e.focus()}(c,r),i&&a&&i(r,a),!0}return!1}),c),w=(0,C.Z)(y,2),b=w[0],Z=w[1],M=f.useState(),E=(0,C.Z)(M,2),x=E[0],T=E[1],O=f.useState(),k=(0,C.Z)(O,2),P=k[0],_=k[1];return(0,He.Z)((function(){T(We(i)),_(ze(i))})),f.useEffect((function(){var e,t;l.current.element===x&&((e=l.current.point)===(t=P)||e&&t&&("pageX"in t&&"pageY"in t?e.pageX===t.pageX&&e.pageY===t.pageY:"clientX"in t&&"clientY"in t&&e.clientX===t.clientX&&e.clientY===t.clientY))&&(0,Se.Z)(l.current.align,r)||b()})),f.useEffect((function(){return Ve(p.current,b)}),[p.current]),f.useEffect((function(){return Ve(x,b)}),[x]),f.useEffect((function(){o?Z():b()}),[o]),f.useEffect((function(){if(u)return(0,g.Z)(window,"resize",b).remove}),[u]),f.useEffect((function(){return function(){Z()}}),[]),f.useImperativeHandle(t,(function(){return{forceAlign:function(){return b(!0)}}})),f.isValidElement(d)&&(d=f.cloneElement(d,{ref:(0,v.sQ)(d.ref,p)})),d},je=f.forwardRef(Le);je.displayName="Align";var Ie=je,Fe=n(74165),Ye=n(15861),Be=n(98368),Xe=["measure","alignPre","align",null,"motion"],Ke=f.forwardRef((function(e,t){var n=e.visible,r=e.prefixCls,a=e.className,u=e.style,s=e.children,c=e.zIndex,l=e.stretch,p=e.destroyPopupOnHide,h=e.forceRender,m=e.align,v=e.point,g=e.getRootDomNode,y=e.getClassNameFromAlign,w=e.onAlign,b=e.onMouseEnter,M=e.onMouseLeave,E=e.onMouseDown,x=e.onTouchStart,k=e.onClick,P=(0,f.useRef)(),_=(0,f.useRef)(),D=(0,f.useState)(),R=(0,C.Z)(D,2),S=R[0],N=R[1],H=function(e){var t=f.useState({width:0,height:0}),n=(0,C.Z)(t,2),o=n[0],i=n[1];return[f.useMemo((function(){var t={};if(e){var n=o.width,i=o.height;-1!==e.indexOf("height")&&i?t.height=i:-1!==e.indexOf("minHeight")&&i&&(t.minHeight=i),-1!==e.indexOf("width")&&n?t.width=n:-1!==e.indexOf("minWidth")&&n&&(t.minWidth=n)}return t}),[e,o]),function(e){var t=e.offsetWidth,n=e.offsetHeight,o=e.getBoundingClientRect(),r=o.width,a=o.height;Math.abs(t-r)<1&&Math.abs(n-a)<1&&(t=r,n=a),i({width:t,height:n})}]}(l),A=(0,C.Z)(H,2),V=A[0],W=A[1];var z=function(e,t){var n=(0,Be.Z)(null),o=(0,C.Z)(n,2),i=o[0],r=o[1],a=(0,f.useRef)();function u(e){r(e,!0)}function s(){d.Z.cancel(a.current)}return(0,f.useEffect)((function(){u("measure")}),[e]),(0,f.useEffect)((function(){"measure"===i&&t(),i&&(a.current=(0,d.Z)((0,Ye.Z)((0,Fe.Z)().mark((function e(){var t,n;return(0,Fe.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=Xe.indexOf(i),(n=Xe[t+1])&&-1!==t&&u(n);case 3:case"end":return e.stop()}}),e)})))))}),[i]),(0,f.useEffect)((function(){return function(){s()}}),[]),[i,function(e){s(),a.current=(0,d.Z)((function(){u((function(e){switch(i){case"align":return"motion";case"motion":return"stable"}return e})),null===e||void 0===e||e()}))}]}(n,(function(){l&&W(g())})),L=(0,C.Z)(z,2),j=L[0],I=L[1],F=(0,f.useState)(0),Y=(0,C.Z)(F,2),B=Y[0],X=Y[1],K=(0,f.useRef)();function U(){var e;null===(e=P.current)||void 0===e||e.forceAlign()}function q(e,t){var n=y(t);S!==n&&N(n),X((function(e){return e+1})),"align"===j&&(null===w||void 0===w||w(e,t))}(0,He.Z)((function(){"alignPre"===j&&X(0)}),[j]),(0,He.Z)((function(){"align"===j&&(B<3?U():I((function(){var e;null===(e=K.current)||void 0===e||e.call(K)})))}),[B]);var G=(0,o.Z)({},O(e));function Q(){return new Promise((function(e){K.current=e}))}["onAppearEnd","onEnterEnd","onLeaveEnd"].forEach((function(e){var t=G[e];G[e]=function(e,n){return I(),null===t||void 0===t?void 0:t(e,n)}})),f.useEffect((function(){G.motionName||"motion"!==j||I()}),[G.motionName,j]),f.useImperativeHandle(t,(function(){return{forceAlign:U,getElement:function(){return _.current}}}));var $=(0,o.Z)((0,o.Z)({},V),{},{zIndex:c,opacity:"motion"!==j&&"stable"!==j&&n?0:void 0,pointerEvents:n||"stable"===j?void 0:"none"},u),J=!0;null===m||void 0===m||!m.points||"align"!==j&&"stable"!==j||(J=!1);var ee=s;return f.Children.count(s)>1&&(ee=f.createElement("div",{className:"".concat(r,"-content")},s)),f.createElement(T.Z,(0,i.Z)({visible:n,ref:_,leavedClassName:"".concat(r,"-hidden")},G,{onAppearPrepare:Q,onEnterPrepare:Q,removeOnLeave:p,forceRender:h}),(function(e,t){var n=e.className,i=e.style,u=Z()(r,a,S,n);return f.createElement(Ie,{target:v||g,key:"popup",ref:P,monitorWindowResize:!0,disabled:J,align:m,onAlign:q},f.createElement("div",{ref:t,className:u,onMouseEnter:b,onMouseLeave:M,onMouseDownCapture:E,onTouchStartCapture:x,onClick:k,style:(0,o.Z)((0,o.Z)({},i),$)},ee))}))}));Ke.displayName="PopupInner";var Ue=Ke,qe=f.forwardRef((function(e,t){var n=e.prefixCls,r=e.visible,a=e.zIndex,u=e.children,s=e.mobile,c=(s=void 0===s?{}:s).popupClassName,l=s.popupStyle,p=s.popupMotion,d=void 0===p?{}:p,h=s.popupRender,m=e.onClick,v=f.useRef();f.useImperativeHandle(t,(function(){return{forceAlign:function(){},getElement:function(){return v.current}}}));var g=(0,o.Z)({zIndex:a},l),y=u;return f.Children.count(u)>1&&(y=f.createElement("div",{className:"".concat(n,"-content")},u)),h&&(y=h(y)),f.createElement(T.Z,(0,i.Z)({visible:r,ref:v,removeOnLeave:!0},d),(function(e,t){var i=e.className,r=e.style,a=Z()(n,c,i);return f.createElement("div",{ref:t,className:a,onClick:m,style:(0,o.Z)((0,o.Z)({},r),g)},y)}))}));qe.displayName="MobilePopupInner";var Ge=qe,Qe=["visible","mobile"],$e=f.forwardRef((function(e,t){var n=e.visible,r=e.mobile,a=(0,E.Z)(e,Qe),u=(0,f.useState)(n),s=(0,C.Z)(u,2),c=s[0],l=s[1],p=(0,f.useState)(!1),d=(0,C.Z)(p,2),h=d[0],m=d[1],v=(0,o.Z)((0,o.Z)({},a),{},{visible:c});(0,f.useEffect)((function(){l(n),n&&r&&m((0,x.Z)())}),[n,r]);var g=h?f.createElement(Ge,(0,i.Z)({},v,{mobile:r,ref:t})):f.createElement(Ue,(0,i.Z)({},v,{ref:t}));return f.createElement("div",null,f.createElement(k,v),g)}));$e.displayName="Popup";var Je=$e,et=f.createContext(null);function tt(){}function nt(){return""}function ot(e){return e?e.ownerDocument:window.document}var it=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"];var rt=function(e){var t=function(t){(0,s.Z)(y,t);var n=(0,c.Z)(y);function y(e){var t,o;return(0,r.Z)(this,y),t=n.call(this,e),(0,l.Z)((0,u.Z)(t),"popupRef",f.createRef()),(0,l.Z)((0,u.Z)(t),"triggerRef",f.createRef()),(0,l.Z)((0,u.Z)(t),"portalContainer",void 0),(0,l.Z)((0,u.Z)(t),"attachId",void 0),(0,l.Z)((0,u.Z)(t),"clickOutsideHandler",void 0),(0,l.Z)((0,u.Z)(t),"touchOutsideHandler",void 0),(0,l.Z)((0,u.Z)(t),"contextMenuOutsideHandler1",void 0),(0,l.Z)((0,u.Z)(t),"contextMenuOutsideHandler2",void 0),(0,l.Z)((0,u.Z)(t),"mouseDownTimeout",void 0),(0,l.Z)((0,u.Z)(t),"focusTime",void 0),(0,l.Z)((0,u.Z)(t),"preClickTime",void 0),(0,l.Z)((0,u.Z)(t),"preTouchTime",void 0),(0,l.Z)((0,u.Z)(t),"delayTimer",void 0),(0,l.Z)((0,u.Z)(t),"hasPopupMouseDown",void 0),(0,l.Z)((0,u.Z)(t),"onMouseEnter",(function(e){var n=t.props.mouseEnterDelay;t.fireEvents("onMouseEnter",e),t.delaySetPopupVisible(!0,n,n?null:e)})),(0,l.Z)((0,u.Z)(t),"onMouseMove",(function(e){t.fireEvents("onMouseMove",e),t.setPoint(e)})),(0,l.Z)((0,u.Z)(t),"onMouseLeave",(function(e){t.fireEvents("onMouseLeave",e),t.delaySetPopupVisible(!1,t.props.mouseLeaveDelay)})),(0,l.Z)((0,u.Z)(t),"onPopupMouseEnter",(function(){t.clearDelayTimer()})),(0,l.Z)((0,u.Z)(t),"onPopupMouseLeave",(function(e){var n;e.relatedTarget&&!e.relatedTarget.setTimeout&&(0,h.Z)(null===(n=t.popupRef.current)||void 0===n?void 0:n.getElement(),e.relatedTarget)||t.delaySetPopupVisible(!1,t.props.mouseLeaveDelay)})),(0,l.Z)((0,u.Z)(t),"onFocus",(function(e){t.fireEvents("onFocus",e),t.clearDelayTimer(),t.isFocusToShow()&&(t.focusTime=Date.now(),t.delaySetPopupVisible(!0,t.props.focusDelay))})),(0,l.Z)((0,u.Z)(t),"onMouseDown",(function(e){t.fireEvents("onMouseDown",e),t.preClickTime=Date.now()})),(0,l.Z)((0,u.Z)(t),"onTouchStart",(function(e){t.fireEvents("onTouchStart",e),t.preTouchTime=Date.now()})),(0,l.Z)((0,u.Z)(t),"onBlur",(function(e){t.fireEvents("onBlur",e),t.clearDelayTimer(),t.isBlurToHide()&&t.delaySetPopupVisible(!1,t.props.blurDelay)})),(0,l.Z)((0,u.Z)(t),"onContextMenu",(function(e){e.preventDefault(),t.fireEvents("onContextMenu",e),t.setPopupVisible(!0,e)})),(0,l.Z)((0,u.Z)(t),"onContextMenuClose",(function(){t.isContextMenuToShow()&&t.close()})),(0,l.Z)((0,u.Z)(t),"onClick",(function(e){if(t.fireEvents("onClick",e),t.focusTime){var n;if(t.preClickTime&&t.preTouchTime?n=Math.min(t.preClickTime,t.preTouchTime):t.preClickTime?n=t.preClickTime:t.preTouchTime&&(n=t.preTouchTime),Math.abs(n-t.focusTime)<20)return;t.focusTime=0}t.preClickTime=0,t.preTouchTime=0,t.isClickToShow()&&(t.isClickToHide()||t.isBlurToHide())&&e&&e.preventDefault&&e.preventDefault();var o=!t.state.popupVisible;(t.isClickToHide()&&!o||o&&t.isClickToShow())&&t.setPopupVisible(!t.state.popupVisible,e)})),(0,l.Z)((0,u.Z)(t),"onPopupMouseDown",(function(){var e;(t.hasPopupMouseDown=!0,clearTimeout(t.mouseDownTimeout),t.mouseDownTimeout=window.setTimeout((function(){t.hasPopupMouseDown=!1}),0),t.context)&&(e=t.context).onPopupMouseDown.apply(e,arguments)})),(0,l.Z)((0,u.Z)(t),"onDocumentClick",(function(e){if(!t.props.mask||t.props.maskClosable){var n=e.target,o=t.getRootDomNode(),i=t.getPopupDomNode();(0,h.Z)(o,n)&&!t.isContextMenuOnly()||(0,h.Z)(i,n)||t.hasPopupMouseDown||t.close()}})),(0,l.Z)((0,u.Z)(t),"getRootDomNode",(function(){var e=t.props.getTriggerDOMNode;if(e)return e(t.triggerRef.current);try{var n=(0,m.Z)(t.triggerRef.current);if(n)return n}catch(o){}return p.findDOMNode((0,u.Z)(t))})),(0,l.Z)((0,u.Z)(t),"getPopupClassNameFromAlign",(function(e){var n=[],o=t.props,i=o.popupPlacement,r=o.builtinPlacements,a=o.prefixCls,u=o.alignPoint,s=o.getPopupClassNameFromAlign;return i&&r&&n.push(function(e,t,n,o){for(var i=n.points,r=Object.keys(e),a=0;a<r.length;a+=1){var u=r[a];if(M(e[u].points,i,o))return"".concat(t,"-placement-").concat(u)}return""}(r,a,e,u)),s&&n.push(s(e)),n.join(" ")})),(0,l.Z)((0,u.Z)(t),"getComponent",(function(){var e=t.props,n=e.prefixCls,o=e.destroyPopupOnHide,r=e.popupClassName,a=e.onPopupAlign,u=e.popupMotion,s=e.popupAnimation,c=e.popupTransitionName,l=e.popupStyle,p=e.mask,d=e.maskAnimation,h=e.maskTransitionName,m=e.maskMotion,v=e.zIndex,g=e.popup,y=e.stretch,w=e.alignPoint,b=e.mobile,Z=e.forceRender,M=e.onPopupClick,C=t.state,E=C.popupVisible,x=C.point,T=t.getPopupAlign(),O={};return t.isMouseEnterToShow()&&(O.onMouseEnter=t.onPopupMouseEnter),t.isMouseLeaveToHide()&&(O.onMouseLeave=t.onPopupMouseLeave),O.onMouseDown=t.onPopupMouseDown,O.onTouchStart=t.onPopupMouseDown,f.createElement(Je,(0,i.Z)({prefixCls:n,destroyPopupOnHide:o,visible:E,point:w&&x,className:r,align:T,onAlign:a,animation:s,getClassNameFromAlign:t.getPopupClassNameFromAlign},O,{stretch:y,getRootDomNode:t.getRootDomNode,style:l,mask:p,zIndex:v,transitionName:c,maskAnimation:d,maskTransitionName:h,maskMotion:m,ref:t.popupRef,motion:u,mobile:b,forceRender:Z,onClick:M}),"function"===typeof g?g():g)})),(0,l.Z)((0,u.Z)(t),"attachParent",(function(e){d.Z.cancel(t.attachId);var n,o=t.props,i=o.getPopupContainer,r=o.getDocument,a=t.getRootDomNode();i?(a||0===i.length)&&(n=i(a)):n=r(t.getRootDomNode()).body,n?n.appendChild(e):t.attachId=(0,d.Z)((function(){t.attachParent(e)}))})),(0,l.Z)((0,u.Z)(t),"getContainer",(function(){if(!t.portalContainer){var e=(0,t.props.getDocument)(t.getRootDomNode()).createElement("div");e.style.position="absolute",e.style.top="0",e.style.left="0",e.style.width="100%",t.portalContainer=e}return t.attachParent(t.portalContainer),t.portalContainer})),(0,l.Z)((0,u.Z)(t),"setPoint",(function(e){t.props.alignPoint&&e&&t.setState({point:{pageX:e.pageX,pageY:e.pageY}})})),(0,l.Z)((0,u.Z)(t),"handlePortalUpdate",(function(){t.state.prevPopupVisible!==t.state.popupVisible&&t.props.afterPopupVisibleChange(t.state.popupVisible)})),(0,l.Z)((0,u.Z)(t),"triggerContextValue",{onPopupMouseDown:t.onPopupMouseDown}),o="popupVisible"in e?!!e.popupVisible:!!e.defaultPopupVisible,t.state={prevPopupVisible:o,popupVisible:o},it.forEach((function(e){t["fire".concat(e)]=function(n){t.fireEvents(e,n)}})),t}return(0,a.Z)(y,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var e,t=this.props;if(this.state.popupVisible)return this.clickOutsideHandler||!this.isClickToHide()&&!this.isContextMenuToShow()||(e=t.getDocument(this.getRootDomNode()),this.clickOutsideHandler=(0,g.Z)(e,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(e=e||t.getDocument(this.getRootDomNode()),this.touchOutsideHandler=(0,g.Z)(e,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&(e=e||t.getDocument(this.getRootDomNode()),this.contextMenuOutsideHandler1=(0,g.Z)(e,"scroll",this.onContextMenuClose)),void(!this.contextMenuOutsideHandler2&&this.isContextMenuToShow()&&(this.contextMenuOutsideHandler2=(0,g.Z)(window,"blur",this.onContextMenuClose)));this.clearOutsideHandler()}},{key:"componentWillUnmount",value:function(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout),d.Z.cancel(this.attachId)}},{key:"getPopupDomNode",value:function(){var e;return(null===(e=this.popupRef.current)||void 0===e?void 0:e.getElement())||null}},{key:"getPopupAlign",value:function(){var e=this.props,t=e.popupPlacement,n=e.popupAlign,i=e.builtinPlacements;return t&&i?function(e,t,n){var i=e[t]||{};return(0,o.Z)((0,o.Z)({},i),n)}(i,t,n):n}},{key:"setPopupVisible",value:function(e,t){var n=this.props.alignPoint,o=this.state.popupVisible;this.clearDelayTimer(),o!==e&&("popupVisible"in this.props||this.setState({popupVisible:e,prevPopupVisible:o}),this.props.onPopupVisibleChange(e)),n&&t&&e&&this.setPoint(t)}},{key:"delaySetPopupVisible",value:function(e,t,n){var o=this,i=1e3*t;if(this.clearDelayTimer(),i){var r=n?{pageX:n.pageX,pageY:n.pageY}:null;this.delayTimer=window.setTimeout((function(){o.setPopupVisible(e,r),o.clearDelayTimer()}),i)}else this.setPopupVisible(e,n)}},{key:"clearDelayTimer",value:function(){this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=null)}},{key:"clearOutsideHandler",value:function(){this.clickOutsideHandler&&(this.clickOutsideHandler.remove(),this.clickOutsideHandler=null),this.contextMenuOutsideHandler1&&(this.contextMenuOutsideHandler1.remove(),this.contextMenuOutsideHandler1=null),this.contextMenuOutsideHandler2&&(this.contextMenuOutsideHandler2.remove(),this.contextMenuOutsideHandler2=null),this.touchOutsideHandler&&(this.touchOutsideHandler.remove(),this.touchOutsideHandler=null)}},{key:"createTwoChains",value:function(e){var t=this.props.children.props,n=this.props;return t[e]&&n[e]?this["fire".concat(e)]:t[e]||n[e]}},{key:"isClickToShow",value:function(){var e=this.props,t=e.action,n=e.showAction;return-1!==t.indexOf("click")||-1!==n.indexOf("click")}},{key:"isContextMenuOnly",value:function(){var e=this.props.action;return"contextMenu"===e||1===e.length&&"contextMenu"===e[0]}},{key:"isContextMenuToShow",value:function(){var e=this.props,t=e.action,n=e.showAction;return-1!==t.indexOf("contextMenu")||-1!==n.indexOf("contextMenu")}},{key:"isClickToHide",value:function(){var e=this.props,t=e.action,n=e.hideAction;return-1!==t.indexOf("click")||-1!==n.indexOf("click")}},{key:"isMouseEnterToShow",value:function(){var e=this.props,t=e.action,n=e.showAction;return-1!==t.indexOf("hover")||-1!==n.indexOf("mouseEnter")}},{key:"isMouseLeaveToHide",value:function(){var e=this.props,t=e.action,n=e.hideAction;return-1!==t.indexOf("hover")||-1!==n.indexOf("mouseLeave")}},{key:"isFocusToShow",value:function(){var e=this.props,t=e.action,n=e.showAction;return-1!==t.indexOf("focus")||-1!==n.indexOf("focus")}},{key:"isBlurToHide",value:function(){var e=this.props,t=e.action,n=e.hideAction;return-1!==t.indexOf("focus")||-1!==n.indexOf("blur")}},{key:"forcePopupAlign",value:function(){var e;this.state.popupVisible&&(null===(e=this.popupRef.current)||void 0===e||e.forceAlign())}},{key:"fireEvents",value:function(e,t){var n=this.props.children.props[e];n&&n(t);var o=this.props[e];o&&o(t)}},{key:"close",value:function(){this.setPopupVisible(!1)}},{key:"render",value:function(){var t=this.state.popupVisible,n=this.props,i=n.children,r=n.forceRender,a=n.alignPoint,u=n.className,s=n.autoDestroy,c=f.Children.only(i),l={key:"trigger"};this.isContextMenuToShow()?l.onContextMenu=this.onContextMenu:l.onContextMenu=this.createTwoChains("onContextMenu"),this.isClickToHide()||this.isClickToShow()?(l.onClick=this.onClick,l.onMouseDown=this.onMouseDown,l.onTouchStart=this.onTouchStart):(l.onClick=this.createTwoChains("onClick"),l.onMouseDown=this.createTwoChains("onMouseDown"),l.onTouchStart=this.createTwoChains("onTouchStart")),this.isMouseEnterToShow()?(l.onMouseEnter=this.onMouseEnter,a&&(l.onMouseMove=this.onMouseMove)):l.onMouseEnter=this.createTwoChains("onMouseEnter"),this.isMouseLeaveToHide()?l.onMouseLeave=this.onMouseLeave:l.onMouseLeave=this.createTwoChains("onMouseLeave"),this.isFocusToShow()||this.isBlurToHide()?(l.onFocus=this.onFocus,l.onBlur=this.onBlur):(l.onFocus=this.createTwoChains("onFocus"),l.onBlur=this.createTwoChains("onBlur"));var p=Z()(c&&c.props&&c.props.className,u);p&&(l.className=p);var d=(0,o.Z)({},l);(0,v.Yr)(c)&&(d.ref=(0,v.sQ)(this.triggerRef,c.ref));var h,m=f.cloneElement(c,d);return(t||this.popupRef.current||r)&&(h=f.createElement(e,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),!t&&s&&(h=null),f.createElement(et.Provider,{value:this.triggerContextValue},m,h)}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.popupVisible,o={};return void 0!==n&&t.popupVisible!==n&&(o.popupVisible=n,o.prevPopupVisible=t.popupVisible),o}}]),y}(f.Component);return(0,l.Z)(t,"contextType",et),(0,l.Z)(t,"defaultProps",{prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:nt,getDocument:ot,onPopupVisibleChange:tt,afterPopupVisibleChange:tt,onPopupAlign:tt,popupClassName:"",mouseEnterDelay:0,mouseLeaveDelay:.1,focusDelay:0,blurDelay:.15,popupStyle:{},destroyPopupOnHide:!1,popupAlign:{},defaultPopupVisible:!1,mask:!1,maskClosable:!0,action:[],showAction:[],hideAction:[],autoDestroy:!1}),t}(w)},33786:function(e,t){t.Z=function(){if("undefined"===typeof navigator||"undefined"===typeof window)return!1;var e=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(null===e||void 0===e?void 0:e.substr(0,4))}},90474:function(e,t,n){var o=function(){if("undefined"!==typeof Map)return Map;function e(e,t){var n=-1;return e.some((function(e,o){return e[0]===t&&(n=o,!0)})),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),o=this.__entries__[n];return o&&o[1]},t.prototype.set=function(t,n){var o=e(this.__entries__,t);~o?this.__entries__[o][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,o=e(n,t);~o&&n.splice(o,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,o=this.__entries__;n<o.length;n++){var i=o[n];e.call(t,i[1],i[0])}},t}()}(),i="undefined"!==typeof window&&"undefined"!==typeof document&&window.document===document,r="undefined"!==typeof n.g&&n.g.Math===Math?n.g:"undefined"!==typeof self&&self.Math===Math?self:"undefined"!==typeof window&&window.Math===Math?window:Function("return this")(),a="function"===typeof requestAnimationFrame?requestAnimationFrame.bind(r):function(e){return setTimeout((function(){return e(Date.now())}),1e3/60)};var u=["top","right","bottom","left","width","height","size","weight"],s="undefined"!==typeof MutationObserver,c=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(e,t){var n=!1,o=!1,i=0;function r(){n&&(n=!1,e()),o&&s()}function u(){a(r)}function s(){var e=Date.now();if(n){if(e-i<2)return;o=!0}else n=!0,o=!1,setTimeout(u,t);i=e}return s}(this.refresh.bind(this),20)}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,n=t.indexOf(e);~n&&t.splice(n,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter((function(e){return e.gatherActive(),e.hasActive()}));return e.forEach((function(e){return e.broadcastActive()})),e.length>0},e.prototype.connect_=function(){i&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),s?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){i&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t;u.some((function(e){return!!~n.indexOf(e)}))&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),l=function(e,t){for(var n=0,o=Object.keys(t);n<o.length;n++){var i=o[n];Object.defineProperty(e,i,{value:t[i],enumerable:!1,writable:!1,configurable:!0})}return e},f=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||r},p=y(0,0,0,0);function d(e){return parseFloat(e)||0}function h(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce((function(t,n){return t+d(e["border-"+n+"-width"])}),0)}function m(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return p;var o=f(e).getComputedStyle(e),i=function(e){for(var t={},n=0,o=["top","right","bottom","left"];n<o.length;n++){var i=o[n],r=e["padding-"+i];t[i]=d(r)}return t}(o),r=i.left+i.right,a=i.top+i.bottom,u=d(o.width),s=d(o.height);if("border-box"===o.boxSizing&&(Math.round(u+r)!==t&&(u-=h(o,"left","right")+r),Math.round(s+a)!==n&&(s-=h(o,"top","bottom")+a)),!function(e){return e===f(e).document.documentElement}(e)){var c=Math.round(u+r)-t,l=Math.round(s+a)-n;1!==Math.abs(c)&&(u-=c),1!==Math.abs(l)&&(s-=l)}return y(i.left,i.top,u,s)}var v="undefined"!==typeof SVGGraphicsElement?function(e){return e instanceof f(e).SVGGraphicsElement}:function(e){return e instanceof f(e).SVGElement&&"function"===typeof e.getBBox};function g(e){return i?v(e)?function(e){var t=e.getBBox();return y(0,0,t.width,t.height)}(e):m(e):p}function y(e,t,n,o){return{x:e,y:t,width:n,height:o}}var w=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=y(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=g(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),b=function(e,t){var n=function(e){var t=e.x,n=e.y,o=e.width,i=e.height,r="undefined"!==typeof DOMRectReadOnly?DOMRectReadOnly:Object,a=Object.create(r.prototype);return l(a,{x:t,y:n,width:o,height:i,top:n,right:t+o,bottom:i+n,left:t}),a}(t);l(this,{target:e,contentRect:n})},Z=function(){function e(e,t,n){if(this.activeObservations_=[],this.observations_=new o,"function"!==typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=n}return e.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!==typeof Element&&Element instanceof Object){if(!(e instanceof f(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new w(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!==typeof Element&&Element instanceof Object){if(!(e instanceof f(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach((function(t){t.isActive()&&e.activeObservations_.push(t)}))},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map((function(e){return new b(e.target,e.broadcastRect())}));this.callback_.call(e,t,e),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),M="undefined"!==typeof WeakMap?new WeakMap:new o,C=function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=c.getInstance(),o=new Z(t,n,this);M.set(this,o)};["observe","unobserve","disconnect"].forEach((function(e){C.prototype[e]=function(){var t;return(t=M.get(this))[e].apply(t,arguments)}}));var E="undefined"!==typeof r.ResizeObserver?r.ResizeObserver:C;t.Z=E}}]);
//# sourceMappingURL=5557.91643337.chunk.js.map